package com.itheima.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component("myAspect")
@Aspect
public class MyAspect {

    public void before(){
        System.out.println("前置切入");
    }
    @After("execution(* *..*.*(..))")
    public void after(){
        System.out.println("后置切入");
    }

    public void around(){
        System.out.println("around切入");
    }
}
